package lab02.test36;

import java.util.ArrayList;
import java.util.List;

public abstract class Student {
    //姓名、类别（本科生还是研究生）、所学课程（这里假定为3门课，用一维数组表示）成绩和成绩等级
    final static int courseNum = 3;
    String name;
    String dept;
    int[] coursesgrade=new int[courseNum];
    String gradeRank = " ";
    double aver;

    public  Student(){
    }
    public Student(String name){
        this.name = name;

    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getDept() {
        return dept;
    }

    public void setDept(String dept) {
        this.dept = dept;
    }

    public void setCoursesgrade(int courseNum,int coursegrade) {
        this.coursesgrade[courseNum] = coursegrade;
    }

    public int getCoursesgrade(int courseNum) {
        return coursesgrade[courseNum];
    }

    public String getGradeRank() {
        return gradeRank;
    }

    public void setGradeRank(String gradeRank) {
        this.gradeRank = gradeRank;
    }

    public void graderank(){};
}
